package com.dayfly.tip.dao;

import java.util.List;

import com.dayfly.tip.model.RecordDO;

/**
 * 
 * @author dayfly
 *
 */
public interface RecordDAO {
	
	/**
	 * record note
	 * @param record
	 * @param title
	 * @param tags
	 * @return
	 */
	public void record(RecordDO record);
	
	/**
	 * get someone's records
	 * @param userId
	 * @return
	 */
	public List<RecordDO> getRecordByUserId(long userId);
	
	/**
	 * 
	 * @param recordId
	 * @return
	 */
	public RecordDO getRecordById(long recordId);
	
	/**
	 * 根据id删除record记录
	 * @param recordId
	 */
	public void deleteRecordById(long recordId);
	
	/**
	 * update the record
	 * @param record
	 */
	public void updateRecord(RecordDO record);

}
